//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop

#include "DPCnsPrv.h"
#include "DPGrfPrv.h"
#include "RLCnsPrv.h"

//---------------------------------------------------------------------------
#pragma package( smart_init )
#pragma link "DialPad"
#pragma link "PHDS"
#pragma resource "*.dfm"
TDPCnsPrv1*  DPCnsPrv1;

//---------------------------------------------------------------------------
__fastcall TDPCnsPrv1::TDPCnsPrv1( TComponent*  Owner ) : TDiPad( Owner )
{
}

//---------------------------------------------------------------------------
void __fastcall TDPCnsPrv1::BitBtn4Click( TObject*  Sender )
{
  try
   {
    DPGrfPrv1 = new TDPGrfPrv1( NULL );
    DPGrfPrv1->ShowModal();
   }

  __finally
   {
    delete DPGrfPrv1;
   }

}

//---------------------------------------------------------------------------
void __fastcall TDPCnsPrv1::BitBtn3Click( TObject*  Sender )
{
  TPedeRel1*  PR;
  TRLCnsPrv1*  RLCnsPrv1 = new TRLCnsPrv1( NULL );
  try
   {
    PR = new TPedeRel1( NULL );
    PR->Report = RLCnsPrv1->PHReport1;
    PR->ShowModal();
   }

  __finally
   {
    Close();
    delete RLCnsPrv1;
    delete PR;
   }

}

//---------------------------------------------------------------------------

